package org.peoples.users {
	
	import flash.net.Responder;
	
	import org.peoples.net.PeoplesConnection;
	import org.peoples.net.PeoplesProxy;
	
	public class UserProxy extends PeoplesProxy implements IUserProxy {
		
		public function UserProxy(uri:String, handler:Object):void {
			super(uri + "/users", handler);
		}
		
		public function userJoin(firstName:String, lastName:String, time:Date):void {
			var resp:Responder = new Responder(onResult, onFault);
			conn.call("userJoin", resp, firstName, lastName, time);
		}
		
		public function getUsers():void {
			var resp:Responder = new Responder(onResult, onFault);
			conn.call("getUsers", resp);
		}
		
	}
}